CC     = gcc
CFLAGS += -Wall -g `pkg-config dbus-1 dbus-glib-1 glib-2.0 gtk+-2.0 --cflags`
LIBS   += -Wall -g `pkg-config dbus-1 dbus-glib-1 glib-2.0 gtk+-2.0 --libs`

TARGET  = rhCtl
OBJ    = $(TARGET).o

all: $(TARGET)

%o: %c
	$(CC) $(CFLAGS) -c $< -o $@

$(TARGET): $(OBJ)
	$(CC) $(LIBS) -o $(TARGET) $(OBJ)
